package com.ww.basic

package bobsrockets {
  package navigation {
    // 类Navigator被标记为private[bobsrockets]，就是说这个类对包含在bobsrockets包里的所有类和对象可见
    private[bobsrockets] class Navigator {
      protected[navigation] def useStartChart() {}

      class LegOfJourney {
        private[Navigator] val distance = 100
      }

      private[this] var speed = 200
    }
  }

  package launch {

    import com.ww.basic.bobsrockets.navigation._

    object Vehicle {
      // Navigator可见，因为在包bobsrockets里
      private[launch] val guide = new Navigator
    }
  }

}